<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>后台登录</title>

    <!-- BOOTSTRAP STYLES-->
    <link href="/static/admin/css/bootstrap.css" rel="stylesheet"/>
    <!-- FONTAWESOME STYLES-->
    <link href="/static/admin/css/font-awesome.css" rel="stylesheet"/>
    <!-- GOOGLE FONTS-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>

</head>
<body style="background-color: #E2E2E2;">
<div class="container">
    <div class="row text-center " style="padding-top:100px;">
        <div class="col-md-12">
            <img src="/static/assets/img/logo-invoice.png"/>
        </div>
    </div>
    <div class="row ">

        <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">

            <div class="panel-body">
                <form action="/admin/login" method="post" id="form">
<!--                    {:token()}-->

                    <hr/>
<!--                    <h5>Enter Details to Login</h5>-->
                    <br/>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-tag"></i></span>
                        <input type="text" class="form-control" name="user_name" placeholder="登录账号"  datatype="s4-10" />
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                        <input type="password" class="form-control" name="password" placeholder="登录密码"  datatype="s6-8" />
                    </div>
                    <div class="form-group">
<!--                        <label class="checkbox-inline">-->
<!--                            <input type="checkbox"/> Remember me-->
<!--                        </label>-->
<!--                        <span class="pull-right">-->
<!--                               <a href="index.html">Forget password ? </a>-->
<!--                        </span>-->
                    </div>
                    <a style="padding:30px;"><input type="submit" class="btn btn-primary" value="登录"></a>
                    <hr/>
<!--                    Not register ? <a href="index.html">click here </a> or go to <a href="index.html">Home</a>-->
                </form>
            </div>

        </div>


    </div>
</div>

</body>
<script type="text/javascript">
    $('#form').Validform({
        tiptype:4,
        ajaxPost:true,
        callback:function(res){
            if(res.status=='success'){
                layer.msg(res.msg,{icon:1});
                location.href='common';
            }else{
                layer.msg(res.msg,{icon:2});
            }
        }
    });

</script>
</html>
